package plugin

import "bcb-cc-observ/pkg/models"

type JsonExit struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Resutl  interface{} `json:"result"`
}

type GetChannels_Resp struct {
	List []string `json:"list"`
}
type GetBlockInfo_Req struct {
	ChannelId   string `json:"channelid"`
	BlockNumber uint64 `json:"blocknumber"`
}

type GetBlockInfo_Resp struct {
	Block models.F_Block_Info `json:"block"`
}

type GetSummaryInfo_Req struct {
	ChannelId string `json:"channelid"`
}

type GetSummaryInfo_Resp struct {
	Info models.F_CHL_Summary_Info `json:"info"`
}

type GetTransactionInfo_Req struct {
	ChannelId string `json:"channelid"`
	TxId      string `json:"txid"`
}

type GetTransactionInfo_Resp struct {
	Info models.F_Transaction_Info `json:"info"`
}
